package com.zhisolution.zhicms;

import com.jfinal.aop.Interceptor;
import com.jfinal.core.ActionInvocation;
import com.jfinal.core.Controller;
import com.zhisolution.zhicms.freemarker.Table_List;

/**
 * 自定义标签拦截器
 * 
 * @author Hamy
 */
public class ZhiCmsInterceptor implements Interceptor {
	public static final String TABLE_LIST = "table_list";
	public static final String 列表 = "列表";
	public void intercept(ActionInvocation ai) {
		Controller c = ai.getController();
		c.setAttr(TABLE_LIST, new Table_List());
		c.setAttr(列表, new Table_List());
		ai.invoke();
	}

}